/* SPDX-License-Identifier: GPL-2.0
 * ir.h - ir head file
 *
 * Copyright (C) 2016-2018, LomboTech Co.Ltd.
 * Author: lomboswer <lomboswer@lombotech.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#ifdef CONFIG_ARCH_LOMBO_N9
#include "csp/ir_csp.h"
#define COMPATIBLE "lombo,n9-ir"
#define RC_MAP_LOMBO "rc-lombo-n9"
#define IR_NAME "n9-ir"
#endif

#ifdef CONFIG_ARCH_LOMBO_N7
#include "csp/ir_csp.h"
#define COMPATIBLE "lombo,n7-ir"
#define RC_MAP_LOMBO "rc-lombo-n9"
#define IR_NAME "n7-ir"
#endif

#ifdef CONFIG_ARCH_LOMBO_N5
#include "csp/ir_csp.h"
#define COMPATIBLE "lombo,n5-ir"
#define RC_MAP_LOMBO "rc-lombo-n9"
#define IR_NAME "n5-ir"
#endif

struct lombo_ir_dev {
	void __iomem		*base;
#ifndef CONFIG_ARCH_LOMBO_N9V3
	/* remove ir module clk from prcm in n9v3 */
	struct clk		*ir_clk;
	struct clk		*parent;
#endif
	struct clk		*clk_gate;
	struct clk		*clk_reset;
	int			irq;
	struct rc_dev		*rcd;
};
